From afab635f9d09b6c6c2f2a3ca9bacd1002646dc0f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 14 Nov 2015 18:05:06 -0500 Subject: [PATCH] HighContrast: Fix shadow size Ensure that the shadow extents don't change as we go to backdrop, to prevent windows from jumping. --- gtk/theme/HighContrast/_common.scss | 1 + gtk/theme/HighContrast/gtk.css | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/theme/HighContrast/_common.scss b/gtk/theme/HighContrast/_common.scss index 1c5cc59105..d17f8b0130 100644 --- a/gtk/theme/HighContrast/_common.scss +++ b/gtk/theme/HighContrast/_common.scss @@ -2462,6 +2462,7 @@ decoration { &:backdrop { box-shadow: 0 2px 6px 2px transparentize(black, 0.8), + 0 3px 9px 1px transparent, 0 0 0 1px $_wm_border_backdrop; } &.tiled { diff --git a/gtk/theme/HighContrast/gtk.css b/gtk/theme/HighContrast/gtk.css index d2a83b9e4f..9deffdc5d5 100644 --- a/gtk/theme/HighContrast/gtk.css +++ b/gtk/theme/HighContrast/gtk.css @@ -2739,7 +2739,7 @@ decoration { /* this is used for the resize cursor area */ margin: 10px; } decoration:backdrop { - box-shadow: 0 2px 6px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.18); } + box-shadow: 0 2px 6px 2px rgba(0, 0, 0, 0.2), 0 3px 9px 1px transparent, 0 0 0 1px rgba(0, 0, 0, 0.18); } decoration.tiled { border-radius: 0; } decoration.csd.popup { -- 2.30.2